package com.xw.utils;

public class PathUtil {

    private static final String seperator = System.getProperty("file.separator");

    /**
     * 返回跟路径
     */
    public static String getImgBasePath() {
        String os = System.getProperty("os.name");
        String basePath = "";
        if (os.toLowerCase().startsWith("win")) {
            basePath = "D:/project/xwim/file/";
        } else {
            basePath = "/Users/renhuiyong/project/lmlm/file/";
        }
        basePath.replace("/", seperator);
        return basePath;
    }

    /**
     * 返回子路径
     */
    public static String getImgPath(String shopId) {
        return "upload/" + shopId + "/";
//        return imagePath.replace("/", seperator);
    }
}
